package com.centerserver;

public interface CenterServerConfig {

	// the port capture end requests connection to
	static final int CAPTURE_END_REQUEST_CONNECT_PORT = 5000;

	// the port capture end sends TCP packets to
	static final int CAPTURE_END_SENDTO_TCP_PORT = 6000;

	// the port capture end sends RTP packets to
	static final int CAPTURE_END_SENDTO_RTP_PORT = 7000;

	// the port monitor end requests connection to
	static final int MONITOR_END_REQUEST_CONNECT_PORT = 8000;

	// the port center server sends TCP packets from
	static final int SENDTO_MONITOR_END_TCP_PORT = 9000;

	// the port center server sends RTP packets from
	static final int SENDTO_MONITOR_END_RTP_PORT = 10000;

	// the size of SPS or PPS, 30 bytes
	static final int SPS_OR_PPS_SIZE = 30;

	// the root directory of the full path recording the video
	static final String RECORD_VIDEO_FULL_PATH_ROOT_DIR = "C:\\Users"
			+ "\\LvtonSmith\\Workspaces\\MyEclipse-8.6\\CenterServer\\data\\";
	
	// the max size of one RTP packet
	static final int RTP_PACKET_MAX_SIZE = 1400;

	// the number of buffer
	static final int CONFIG_BUFFER_NUM = 6;
	
//	/*
//	 * the size of RTP buffer,
//	 * RTP buffer is used to order the RTP packets
//	 */
//	static final int CONFIG_RTP_BUFFER_SIZE = CONFIG_BUFFER_NUM * RTP_PACKET_MAX_SIZE;
	
//	/*
//	 * The two high byte of multicast address
//	 */
//	static final String CONFIG_MULTICAST_TWO_HIGH_BYTES = "228.5.";
	
	/*
	 * the port monitor end uses to receive RTP packets
	 */
	static final int PORT_MONITOR_END_RECEIVE_RTP = 10000;
	
	/*
	 * the port monitor end send commands to
	 */
	static final int PORT_MONITOR_END_SEND_COMMAND_TO = 11000;
}
